package org.jash.ting13.entity

import org.jash.converters.Xpath
import org.jash.utils.net.base_url

/**
 * Created by Jash
 */
data class SliderEntity(
    @Xpath("./@title")
    val title:String,
    @Xpath("./img/@src")
    val img:String,
    @Xpath("./@href")
    val url:String
) {
    fun getImage() = if (img.startsWith("http")) img else base_url + img
}
